from config.h3yun_config import headers
import requests
import json


def post(api_url, post_data):
    response = requests.post(url=api_url, headers=headers, data=json.dumps(post_data, ensure_ascii=False).encode('utf8'))
    #
    # response = requests.post(url=api_url, headers=headers, data=post_data)
    return response

